<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>

<%@page import="com.lovo.bbs.vo.*,com.lovo.bbs.bo.*,java.util.*"%>

<%
    //提示信息
	String msg = "";
	if (request.getAttribute("msg") != null) {
		msg = (String) request.getAttribute("msg");
	}
	//获取用户信息 
	String username = request.getParameter("username");
	UserInfoVo userinfo = new UserInfoBo().getUserInfo(username,LoginBo.TYPE_OF_MEMBER);
	//网站杂项信息 
	ForumStatVo forumInfo = (ForumStatVo) application.getAttribute("forumInfo");
%>


<html>
	<head>
		<title>控制面板 - <%=forumInfo.getSiteName()%></title>
		
		<link href="../css/style.css" type="text/css" rel=stylesheet />
		<link href="../css/menu.css" type="text/css" rel=stylesheet />
		<link href="../css/common.css" type="text/css" rel="stylesheet" />	
		<script type="text/javascript" src="../js/wbs_ajax.js"></script>
	</head>
	<body >
	
		<div id=popLayer style="position: absolute; z-index: 101"
			class=cPopText></div>

        <form name="frmMain" method="post" action="ControlServlet?type=account">
        
        
        
		<!--登录状态----------------------------------------------------------------->
		<table width="100%" align="center" cellpadding="0" cellspacing="1"
			class="CommonNavigation_OuterTableCSS">
			<tr>
				<td>
					<table width="100%" cellpadding="9" cellspacing="0">
						<tr>
							<td class="CommonNavigation_InnerTableFooterCSS">
								<table width="100%" cellpadding="0" cellspacing="0" board="1">
									<tr>
										<td class="SmallTxt">
											欢迎:
											<label onMousemove="showPopupText(labeluser)"
												onMouseout="showPopupText('')">
												<a class="UserName"
													href="../userinfo.jsp?username=<%=userinfo.getUserName()%>"><%=userinfo.getUserName()%></a>
											</label>
											<font class="SmlLinks">( </font><a
												href="../LogoutServlet?toindex=true&logedusername=<%=userinfo.getUserName()%>">退出</a><font
												class="SmlLinks"> )</font>&nbsp;&nbsp;
											<a class="FunctionDesk"
												href="control.jsp?username=<%=userinfo.getUserName()%>">控制面板</a>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>


		<font size="1"><br> </font>

		<!--导航栏----------------------------------------------------------------->
		<table width="100%" cellpadding="0" cellspacing="1"
			class="BreadCrumb_OuterTableCSS">
			<tr>
				<td>
					<table width="100%" cellpadding="9" cellspacing="0"
						class="BreadCrumb_InnerTableCSS">
						<tr>
							<td align="left">
								<a title="返回首页" class="SmlBoldLinks" href="../index.jsp"><%=forumInfo.getSiteName()%></a>
								<font class="BreadCrumb_NavSeperator">&#187;</font>
								<a class="SmlBoldLinks"
									href="control.jsp?username=<%=userinfo.getUserName()%>">控制面板</a>
								<font class="BreadCrumb_NavSeperator">&#187;</font>
								<a>帐户管理</a>&nbsp;&nbsp;
								    <font id="servermsg" size="1" color="red"><%=msg %></font>
								    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								    <font id="warnmsg"  size="1" color="red"></font>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		
		<font size="1"><br> </font>



		<table Width="100%" CellPadding="0" CellSpacing="0">
			<tr>
				<td width="20%" valign="top">
					<table Class="forum_out" width="100%" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td>
								<table border="0" width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td>
											<table width="100%" border="0" cellpadding="9"
												cellspacing="0">
												<tr>
													<td class="forumcell_read">
														<font class="forumcell_read">控制面板</font>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table border="0" width="100%" cellpadding="9"
												cellspacing="1">
												<tr>
													<td Class="forumcell_button" bgcolor="#F5FBFF">
														<font class="SmlBoldLinks">账户管理</font>
													</td>
												</tr>
												<tr>
													<td Class="forumcell_button">
														<a class="SmlBoldLinks"
															href="contact.jsp?username=<%=userinfo.getUserName()%>">联系方式</a>
													</td>
												</tr>
												<tr>
													<td Class="forumcell_button">
														<a class="SmlBoldLinks"
															href="special.jsp?username=<%=userinfo.getUserName()%>">个性化设置</a>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>

				



				</td>
				<td>
					&nbsp;
				</td>
				<td width="80%" valign="top">
					<table class="forum_out" width="100%" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td>
								<table border="0" width="100%" cellpadding="0" cellspacing="0">
									<tr>
										<td>

											<table width="100%" cellpadding="9" cellspacing="1">
												<tr>
													<td class="forumcell_read" colspan="2">
														<font class="forumcell_read">修改Email</font>
													</td>
												</tr>
												<tr>
													<td width="24%" class="forumcell_button">
														<font class="SmallTxtBold">Email:</font>
														<font size="1"><br> </font>
													</td>
													<td class="forumcell_button">
														<input type="text" name="email"
															value="<%=userinfo.getEmail()%>" class="FormInputText"
															style="width: 70%" />

													</td>
												</tr>
												<tr>
													<td class="forumcell_read" colspan="2">
														<font class="forumcell_read">修改密码</font>
													</td>
												</tr>
												<tr>
													<td width="24%" class="forumcell_button">
														<font class="SmallTxtBold">原始密码:</font>
														<br>
													</td>
													<td class="forumcell_button">
														<input type="password" name="formerpassword"
															class="FormInputText" Value="" style="width: 70%" />
													</td>
												</tr>
												<tr>
													<td width="24%" class="forumcell_button">
														<font class="SmallTxtBold">新密码:</font>
														<br>
													</td>
													<td class="forumcell_button">
														<input type="password" name="password"
															class="FormInputText" style="width: 70%" />
													</td>
												</tr>
												<tr>
													<td width="24%" class="forumcell_button">
														<font class="SmallTxtBold">确认新密码:</font>
														<br>
													</td>
													<td class="forumcell_button">
														<input type="password" name="repassword"
															class="FormInputText" value="" style="width: 70%" />
													</td>
												</tr>
												<tr>
													<td width="24%" class="forumcell_button" align="center">
														<input type="button" class="FormButtonBig"
															value=" 修改帐户信息"  onclick="checkMailPassword()"   style="height: 26px;" />
													</td>
													
												</tr>
											</table>

										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<br>

		<!--页脚----------------------------------------------------------------->
		<%@include file="../include/copyright.html"%>

		<font size="1"><br> </font>
		
        </form>
        
	</body>
</html>

